import Vue from 'vue'
import Router from 'vue-router'
import Login from '../pages/Login.vue'
import Home from '../components/Home.vue'
import Info from '../pages/Info.vue'
import Consumer from '../pages/Consumer.vue'
import VideoPage from '../pages/VideoPage.vue'
import CheckVideo from '../pages/CheckVideo.vue'
import Comment from '../pages/Comment.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      children:[
        {
          path:'/Info',
          name:'Info',
          component: Info,
        },
        {
          path:'/Consumer',
          name:'Consumer',
          component: Consumer,
        },
        {
          path:'/VideoPage',
          name:'VideoPage',
          component: VideoPage,
        },
        {
          path:'/CheckVideo',
          name:'CheckVideo',
          component: CheckVideo,
        },
        {
          path:'/Comment',
          name:'Comment',
          component: Comment,
        },
      ],
      redirect:'/Info'
    },
  ]
})
